#include<stdio.h>

int main01()
{
	int a = 10;
	int b = 20;
	int c = a + b;
	int d = a - b;
	int e = a * b;
	double f = a * 1.0 / b;

	printf("%d %d %d %.1lf\n", c, d, e, f);

	return 0;
}

int main02()
{
	int a = 1;       //a++与++a单独使用效果一样
	int b = a++;     //++在后面，先使用其数字，再自+1
	int c = ++a;     //++在前面，先自+1，再使用其加后的数字
	printf("b=%d c=%d\n", b, c);

	int d = 2;
	int e = d--;     //输出结果为d=1,但e=2
	int f = --d;     //输出结果为d=0,即f=0

	printf("e=%d f=%d\n", e, f);
	
    return 0;
}